<?php 

session_start();
ini_set("include_path", "/");
require_once 'ClsSebent/Registration_class.php';//C:/Program Files/EasyPHP 2.0b1/www/SebentLastCode
$_SESSION['SITE_ID']=101;


$Registration = new Registration_class;

		$action="";
		$Bid="";
		$fname="";
		$lname="";
		$Bpass="";		
		$BillStreet="";
		$BillCity="";
		$BillState="";
		$BillCountry="";
		$BillZip="";
		$ShipStreet="";
		$ShipCity="";
		$ShipState="";
		$ShipCountry="";
		$ShipZip="";				
		$phone="";
		$email="";
		$paypalid="";

	if(isset($_POST["action"]))
	{
		$action=$_POST["action"];
		$Bid=$_POST["Bid"];
		$fname=$_POST["fname"];
		$lname=$_POST["lname"];
		$Bpass=$_POST["Bpass"];		
		$BillStreet=$_POST["BillStreet"];
		$BillCity=$_POST["BillCity"];
		$BillState=$_POST["BillState"];
		$BillCountry=$_POST["BillCountry"];
		$BillZip=$_POST["BillZip"];
		$ShipStreet=$_POST["ShipStreet"];
		$ShipCity=$_POST["ShipCity"];
		$ShipState=$_POST["ShipState"];
		$ShipCountry=$_POST["ShipCountry"];
		$ShipZip=$_POST["ShipZip"];				
		$phone=$_POST["phone"];
		$email=$_POST["email"];
		$paypalid=$_POST["paypalid"];
	}
	
	
	if($action=="Save")
	{
		$Registration->Register_Buyer();
	}
?>

<style type="text/css">
<!--
body {
	background-color: #000000;
}
body,td,th {
	color: #FFFFFF;
}
-->
</style>
<script type="text/javascript" src="ClsSebent/Client_Validation.js" ></script>
<form name="frm" method="post">
<table width="489" border="1" align="center">
  <tr>
    <td colspan="2"><div align="center">
      <h2>Buyer Registration </h2>
    </div></td>
  </tr>
  <tr>
    <td colspan="2"><div align="center">
      <h2><?php echo $Registration->Message;?> </h2>
    </div></td>
  </tr>
  <tr>
    <td width="117">First Name* </td>
    <td width="362"><input type="text" name="fname" id="fname" value="<?php echo $fname;?>"/></td>
  </tr>
  <tr>
    <td>Last Name* </td>
    <td><input type="text" name="lname" id="lname" value="<?php echo $lname;?>"/></td>
  </tr>
  <tr>
    <td>User Id* </td>
    <td><input type="text" name="Bid" id="Bid" value="<?php echo $Bid;?>"/>
    <input type="button" name="button" value="Check Availability" onclick="javascript: window.open('chkBavail.php?Bid=' + document.frm.Bid.value +'width=0, height=0');"/></td>
  </tr>
  <tr>
    <td>Password*</td>
    <td><input type="text" name="Bpass" id="Bpass" /></td>
  </tr>
  <tr>
    <td colspan="2">Billing Address </td>
    </tr>
  <tr>
    <td>Street*</td>
    <td><input type="text" name="BillStreet" id="BillStreet" value="<?php echo $BillStreet;?>"/></td>
  </tr>
  <tr>
    <td>City*</td>
    <td><input type="text" name="BillCity" id="BillCity" value="<?php echo $BillCity;?>"/></td>
  </tr>
  <tr>
    <td>State*</td>
    <td><input type="text" name="BillState" id="BillState" value="<?php echo $BillState;?>"/></td>
  </tr>
  <tr>
    <td>Country*</td>
    <td><input type="text" name="BillCountry" id="BillCountry" value="<?php echo $BillCountry;?>"/></td>
  </tr>
  <tr>
    <td>Zip*</td>
    <td><input type="text" name="BillZip" id="BillZip" value="<?php echo $BillZip;?>"/></td>
  </tr>
  <tr>
    <td colspan="2">Shipping Address </td>
    </tr>
  <tr>
    <td>Street*</td>
    <td><input type="text" name="ShipStreet" id="ShipStreet" value="<?php echo $ShipStreet;?>"/></td>
  </tr>
  <tr>
    <td>City*</td>
    <td><input type="text" name="ShipCity" id="ShipCity" value="<?php echo $ShipCity;?>"/></td>
  </tr>
  <tr>
    <td>State*</td>
    <td><input type="text" name="ShipState" id="ShipState" value="<?php echo $ShipState;?>"/></td>
  </tr>
  <tr>
    <td>Country*</td>
    <td><input type="text" name="ShipCountry" id="ShipCountry" value="<?php echo $ShipCountry;?>"/></td>
  </tr>
  <tr>
    <td>Zip*</td>
    <td><input type="text" name="ShipZip" id="ShipZip" value="<?php echo $ShipZip;?>"/></td>
  </tr>
  <tr>
    <td>Phone No* </td>
    <td><input type="text" name="phone" id="phone" value="<?php echo $phone;?>"/></td>
  </tr>
  <tr>
    <td>Email*</td>
    <td><input type="text" name="email" id="email" value="<?php echo $email;?>"/></td>
  </tr>
  <tr>
    <td>Paypal ID*</td>
    <td><input type="text" name="email" id="email" value="<?php echo $paypalid;?>"/></td>
  </tr>
  <tr>
    <td> </td>
    <td><input name="action" type="submit" id="action" value="Save" onclick="javascript: return validate_BuyerReg();" /></td>
  </tr>
</table>
</form>
